function validateForm(){
	var status = true;
	var schoolname = document.getElementById("register_team_teamName").value.trim();
	alert(schoolname);
	var teamname = document.getElementById("register_team_schoolName").value.trim();
	var teamlevel = document.getElementById("register_team_teamLevel").value.trim();
	var casestudy = document.getElementById("register_team_caseStudy").value.trim();
	var mentorname = document.getElementById("register_team_mentor_mentorName").value.trim();
	var mentoremail = document.getElementById("register_team_mentor_emailAddress").value.trim();
	var mentortel = document.getElementById("register_team_mentor_mobileNumber").value.trim();
	var studentname = document.getElementById("register_studentName").value.trim();
	var studentnric = document.getElementById("register_studentNric").value.trim();
	var studentmail = document.getElementById("register_studentEmail").value.trim();
	var studenttel = document.getElementById("register_studentMobile").value.trim();
	var file1 = document.getElementById("attachment1").value;
	var file2 = document.getElementById("attachment2").value;

	if(schoolname == null || schoolname ==""){
		status = false;
	}
	
	if(teamname == null || teamname == ""){
		status = false;
	}
	
	if(teamlevel == -1  || teamlevel == null || teamlevel == "" ){
		status = false;
	}
	
	if(casestudy == -1 || casestudy ==null || casestudy == ""){
		status = false;
	}
	if(mentorname == null || mentorname =="" ){
		status = false;
	}
	if(mentoremail == null || mentoremail ==""){
		status = false;
	}
	
	if(mentortel == null || mentortel =="" || (!isNaN(mentortel))){
		status = false;
	}
	
	if(studentname == null || studentname =="" ){
		status = false;
	}
	if(studentnric == null || studentnric ==""){
		status = false;
	}
	if(studentmail == null || studentmail ==""){
		status = false;
	}
	if(studenttel == null || studenttel =="" || (!isNaN(studenttel))){
		status = false;
	}
	

	if(file1 == null || file1 == "")
		status = false;
	
	if(file2 == null || file2 == "")
		status = false;
	

	if(!status){
		document.getElementById("error").style.display = "block";
		return status;
	}
	
	
	
}